package com.hjlh.aimedical.controller;

import com.hjlh.aimedical.common.respone.ResultModel;
import com.hjlh.aimedical.entity.User;
import com.hjlh.aimedical.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/user")
public class UserController {

    @Autowired
    UserService userService;

    @RequestMapping("add")
    public ResultModel add(@RequestBody User user){
        return userService.add(user);
    }
}
